vchiq_arm: Avoid use of mutex in add_completion
authorPhil Elwell <phil@raspberrypi.org>
Mon, 20 Jun 2016 12:51:44 +0000 (13:51 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:45:12 +0000 (15:45 +0100)
commit6f10b104440dcd3ef910cb1157370c3dd597d206
tree559b4824acebd58b5fc7c82e281acf4d54205cc2
parentdcd3887a3c29f22e145d5519eaa8f0e0eb942d66
vchiq_arm: Avoid use of mutex in add_completion

Claiming the completion_mutex within add_completion did prevent some
messages appearing twice, but provokes a deadlock caused by vcsm using
vchiq within a page fault handler.

Revert the use of completion_mutex, and instead fix the original
problem using more memory barriers.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c